import request from '@/utils/request'
const _request = (url, method, data) => request({ url, method, data })

export default {
  add(data) {
    return _request('/api/Pdca/Add', 'post', data)
  },
  delete(data) {
    return _request('/api/Pdca/Delete', 'post', data)
  },
  update(data) {
    return _request('/api/Pdca/Update', 'post', data)
  },
  list(data) {
    return _request('/api/Pdca/List', 'post', data)
  },
  // 获取周报、日报、月报等
  getReport(data) {
    return _request('/api/PDCA/GetReport', 'post', data)
  }
}
